@import '../../style/var.scss';

.wrapper {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #F5F5F5;
  z-index: 10;

  &.hidden {
    display: none;
  }
}

.top {
  position: relative;
  height: 380px;
  width: 100%;

  .cover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    // width: 285px;
    // height: 285px;
    width: 100%;
    height: 100%;
  }

  .swiper {
    width: 100%;
    height: 100%;

    .swiper-item {
      width: 100%;
      height: 100%;

      image {
        width: 100%;
        height: 100%;
      }
    }
  }
}

.middle {
  width: 100%;
  flex: 1;
  overflow: hidden;
  overflow-y: scroll;
  background-color: #fff;

  .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    width: 100%;
    height: 77px;

    .text,
    .close {
      font-size: 30px;
      font-weight: bold;
      color: rgba(38, 38, 38, 1);
    }
  }

  .card {
    align-items: center;
    margin: 30px 21px;
    font-size: 30px;
    color: rgba(51, 51, 51, 1);

    .card-selected {
      display: inline-block;
      margin-left: 21px;
      font-size: 26px;
      font-weight: 300;
      color: rgba(153, 153, 153, 1);
    }
  }

  .card-value-wrapper {
    display: inline-block;
    white-space: nowrap;
    width: 100%;
    overflow-x: auto;
    margin-top: 30px;

    .card-value {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      // display: inline-block;
      // line-height: 65px;
      // text-align: center;
      margin-right: 20px;
      min-width: 144px;
      height: 65px;
      white-space: nowrap;
      // word-break: keep-all;
      border-radius: 2px;
      background: rgba(245, 245, 245, 1);
      color: #D9D9D9;

      &.active {
        background: rgba(248, 161, 32, 1);
        color: #fff;
      }
    }
  }

  .attr {
    padding: 24px 24px 30px;

    .attr-name {
      margin-bottom: 30px;
      font-size: 30px;
      color: rgba(51, 51, 51, 1);

      .attr-selected {
        display: inline-block;
        margin-left: 21px;
        font-size: 26px;
        font-weight: 300;
        color: rgba(153, 153, 153, 1);
      }
    }

    .attr-value-wrapper {
      display: inline-block;
      white-space: nowrap;
      width: 100%;
      overflow-x: auto;

      .attr-value {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        // display: inline-block;
        // line-height: 65px;
        // text-align: center;
        margin-right: 20px;
        min-width: 144px;
        height: 65px;
        white-space: nowrap;
        // word-break: keep-all;
        border-radius: 2px;
        background: rgba(245, 245, 245, 1);
        color: #666;

        &.active {
          background: rgba(248, 161, 32, 1);
          color: #fff;
        }
      }

      .attr-image-value {
        margin-right: 20px;
        width: 142px;
        height: 142px;

        &.active {
          border: 2px solid rgba(248, 161, 32, 1);
        }
      }
    }
  }

  .storage {
    display: flex;
    align-items: center;
    padding: 0 24px;
    width: 100%;
    height: 128px;

    .text {
      font-size: 30px;
      font-weight: bold;
      color: rgba(51, 51, 51, 1);
    }

    .number {
      flex: 1;
      margin-right: 20px;
      text-align: right;
      color: #999999;
    }

    // .opt-wrapper {
    //   display: flex;
    //   align-items: center;
    //   justify-content: space-around;
    //   min-width: 142px;
    //   // height: 50px;
    //   padding: 8px 0;
    //   border: 1px solid rgba(153, 153, 153, 1);

    //   .opt {
    //     font-size: 26px;
    //     font-weight: 300;
    //     color: rgba(153, 153, 153, 1);
    //   }

    //   .add,
    //   .min {
    //     vertical-align: middle;
    //     font-size: 36px;
    //     font-weight: 500;
    //   }
    // }

    .opt-wrapper {
      display: flex;
      justify-content: space-around;
      align-items: center;
      width: 142px;
      height: 50px;
      border: 2px solid rgba(153, 153, 153, 1);
      border-radius: 2px;

      View {
        // line-height: 50px;
        padding: 10px 0;
        line-height: 1;
        font-size: 28px;
        color: rgba(38, 38, 38, 1);
      }

      .add,
      .min {
        padding: 4px 10px;
        font-size: 40px;
      }
    }
  }

  .date-picker {
    box-sizing: border-box;
    padding: 0 24px;
    width: 100%;
    height: 128px;
    border-top: 1px solid rgba(0,0,0,.1);
    border-bottom: 1px solid rgba(0,0,0,.1);
    .wrap {
      width: 100%;
      height: 128px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .text {
        font-size: 30px;
        font-weight: bold;
        color: rgba(51, 51, 51, 1);
      }
  
      .number {
        flex: 1;
        margin-right: 20px;
        text-align: right;
        color: #999999;
      }
    }
  }
}

.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 20px 26px;
  width: 100%;
  height: 130px;
  background-color: #fff;

  .text {
    font-size: 30px;
    font-weight: bold;
    color: rgba(38, 38, 38, 1);
  }

  .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 228px;
    height: 90px;
    font-size: 30px;
    color: rgba(255, 255, 255, 1);
    background: rgba(248, 161, 32, 1);
  }
}
